﻿using System;
using System.Collections.Generic;
using System.Text;
using Watchdog.Bll.Base;
using Watchdog.Bll.Factory;

namespace Watchdog.Bll {

    public partial class ConfigValue : ConfigValueBase {

        internal ConfigValue () : base () {}

        internal ConfigValue ( Facade.ConfigValue configvalue ) : base (configvalue) { }
		
		#region [ Parent objects ]

		private Test test;
		public new Test Test {
			get {
				if ( test == null )
					 test = TestFactory.GetById(base.Test);
				return test;
			}
			set { 
				test = value;
				base.Test = value.Id;
			}
		}
		private Config config;
		public new Config Config {
			get {
				if ( config == null )
					 config = ConfigFactory.GetById(base.Config);
				return config;
			}
			set { 
				config = value;
				base.Config = value.Id;
			}
		}

		#endregion

		#region [ Many to many relations ]

		#endregion

		#region [ Add & Remove methods for many to many relations ]

		#endregion
		
		#region [ One to many relations ]

		#endregion
		
		#region [ Add & Remove methods for one to many relations ]

		#endregion

    }
}
